package conditions

import "gitee.com/gobatis/gobatis-plus/metadata"

func GetPage[T any](current, size int) *metadata.Page[T] {
	if current <= 0 {
		current = 1
	}
	if size <= 0 {
		size = 10
	}
	return &metadata.Page[T]{Current: current, Size: size}
}
